Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

@venncity/errors

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@venncity/errors

![Coverage](https://api.venn.city/production/coverage/badge?branch=master&repository=@venncity/errors)

  • 2.1.25
  • latest
  • npm
  • Socket score
71

Supply Chain Security

77

Quality

77

Maintenance

100

Vulnerabilities

100

License


Version published
Weekly downloads
551
decreased by-12.26%
Maintainers
1
Weekly downloads
 
Created

Errors

Coverage

Provides data validation and common error objects.

Error types:
  • VennError
  • VennUnknownError
  • VennForbiddenError
  • VennThrottlingError
  • VennServerDataValidationError
  • VennClientDataValidationError
validator.assert(value, schema, overrides)

Used to validate an object schema against a schema (using the joi dsl - https://github.com/hapijs/joi/blob/v15.0.0/lib/language.js). The ValidationError field in the overrides param lets you select what type of error will be thrown upon a validation error.

FAQs

Package last updated on 15 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts